import request from "@/utils/request";

//订单
export function tplus_getOrder(params) {
  return request({
    url: "/tplus/getOrder",
    method: "get",
    params
  });
}
export function tplus_synchroOrder(data) {
  return request({
    url: "/tplus/synchroOrder",
    method: "post",
    data: data
  });
}

//退货订单
export function tplus_getOrderReturn(params) {
  return request({
    url: "/tplus/getOrderReturn",
    method: "get",
    params
  });
}

export function tplus_synchroOrderReturn(data) {
  return request({
    url: "/tplus/synchroOrderReturn",
    method: "post",
    data: data
  });
}

// 分类
export function tplus_getCategory(params) {
  return request({
    url: "/tplus/getCategory",
    method: "get",
    params
  });
}
export function tplus_synchroCategory(params) {
  return request({
    url: "/tplus/synchroCategory",
    method: "post",
    params
  });
}

// 商品
export function tplus_getGoods(params) {
  return request({
    url: "/tplus/getGoods",
    method: "get",
    params
  });
}
export function tplus_synchroGoods(params) {
  return request({
    url: "/tplus/synchroGoods",
    method: "post",
    params
  });
}

// 用户
export function tplus_getMember(params) {
  return request({
    url: "/tplus/getMember",
    method: "get",
    params
  });
}
export function tplus_synchroMember(params) {
  return request({
    url: "/tplus/synchroMember",
    method: "post",
    params
  });
}

// 供应商
export function tplus_getSupplier(params) {
  return request({
    url: "/tplus/getSupplier",
    method: "get",
    params
  });
}
export function tplus_synchroSupplier(params) {
  return request({
    url: "/tplus/synchroSupplier",
    method: "post",
    params
  });
}

// 采购员
export function tplus_getBuyer(params) {
  return request({
    url: "/tplus/getBuyer",
    method: "get",
    params
  });
}

export function tplus_synchroBuyer(params) {
  return request({
    url: "/tplus/synchroBuyer",
    method: "post",
    params
  });
}
// 采购单
export function tplus_getPurchase(params) {
  return request({
    url: "/tplus/getPurchase",
    method: "get",
    params
  });
}

export function tplus_synchroPurchase(data) {
  return request({
    url: "/tplus/synchroPurchase",
    method: "post",
    data: data
  });
}

// 采购退货单
export function tplus_purchaseReturn(params) {
  return request({
    url: "/tplus/purchaseReturn",
    method: "get",
    params
  });
}
export function tplus_synchropurchaseReturn(params) {
  return request({
    url: "/tplus/synchropurchaseReturn",
    method: "post",
    params
  });
}

// 货到付款
export function tplus_getOfflineSettle(params) {
  return request({
    url: "/tplus/getOfflineSettle",
    method: "get",
    params
  });
}

export function tplus_synchroOfflineSettle(params) {
  return request({
    url: "/tplus/synchroOfflineSettle",
    method: "post",
    params
  });
}

// 在线支付
export function tplus_getOnlineSettle(params) {
  return request({
    url: "/tplus/getOnlineSettle",
    method: "get",
    params
  });
}

export function tplus_synchroOnlineSettle(params) {
  return request({
    url: "/tplus/synchroOnlineSettle",
    method: "post",
    params
  });
}

// 采购结算单
export function tplus_getAdviseSettle(params) {
  return request({
    url: "/tplus/getAdviseSettle",
    method: "get",
    params
  });
}

export function tplus_synchroAdviseSettle(params) {
  return request({
    url: "/tplus/synchroAdviseSettle",
    method: "post",
    params
  });
}
